cmake_minimum_required(VERSION 3.27)
project(lstm_captcha)
set(CMAKE_CXX_STANDARD 17)

if(CMAKE_BUILD_TYPE STREQUAL "")
    set(CMAKE_BUILD_TYPE "Debug")
elseif(CMAKE_BUILD_TYPE STREQUAL "Release")
    set(CMAKE_BUILD_TYPE "Release")
endif()


option(LIBTORCH_STRUCT "use libtorch code" OFF)
if(LIBTORCH_STRUCT)
    add_definitions(-DLIBTORCH_STRUCT)
    # 或者添加源文件
    add_subdirectory(libtorch_data_struct2)
else()
    add_subdirectory(custom_data_struct)
endif()
